﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="paging.ascx.cs" Inherits="VISS.Web.BackEnd.Modules.User.PagingControl" %>
<div class="paging">
    <div class="link first">
        <% if (FirstLink != string.Empty) { %>
               <a href="<%=FirstLink %>">Trang đầu</a>
        <% }
           else { %>
               <span>Trang đầu</span>
        <% } %>
    </div>
    <span class="spacer">|</span>
    <div class="link previous">
        <% if (PreviousLink != string.Empty) { %>
               <a href="<%=PreviousLink %>">Trang trước</a>
        <% }
           else { %>
               <span>Trang trước</span>
        <% } %>
    </div>
    <span class="spacer">|</span>
    <div class="page">
        <input type="text" value="<%=CurrentPage %>" id="txtCurrentPage" />
        /
        <span><%=TotalPage %></span>
        <input type="button" value="Xem" id="btnGo" />
    </div>
    <span class="spacer">|</span>
    <div class="link next">
        <% if (NextLink != string.Empty) { %>
               <a href="<%=NextLink %>">Trang sau</a>
        <% }
           else { %>
               <span>Trang sau</span>
        <% } %>
    </div>
    <span class="spacer">|</span>
    <div class="link last">
        <% if (LastLink != string.Empty) { %>
               <a href="<%=LastLink %>">Trang cuối</a>
        <% }
           else { %>
               <span>Trang cuối</span>
        <% } %>
    </div>
    <input type="hidden" id="TargetPage" value="<%=TargetPage %>" />
    <input type="hidden" id="Page" value="<%=CurrentPage %>" />
    <input type="hidden" id="QueryString" value="<%=QueryString %>" />
</div>